saved_query.proto 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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/struct.proto";
  19. import "google/protobuf/timestamp.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 = "SavedQueryProto";
  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. // A SavedQuery is a view of the dataset. It references a subset of annotations
  28. // by problem type and filters.
  29. message SavedQuery {
  30. option (google.api.resource) = {
  31. type: "aiplatform.googleapis.com/SavedQuery"
  32. pattern: "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}"
  33. };
  34. // Output only. Resource name of the SavedQuery.
  35. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  36. // Required. The user-defined name of the SavedQuery.
  37. // The name can be up to 128 characters long and can consist of any UTF-8
  38. // characters.
  39. string display_name = 2 [(google.api.field_behavior) = REQUIRED];
  40. // Some additional information about the SavedQuery.
  41. google.protobuf.Value metadata = 12;
  42. // Output only. Timestamp when this SavedQuery was created.
  43. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  44. // Output only. Timestamp when SavedQuery was last updated.
  45. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  46. // Output only. Filters on the Annotations in the dataset.
  47. string annotation_filter = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Required. Problem type of the SavedQuery.
  49. // Allowed values:
  50. //
  51. // * IMAGE_CLASSIFICATION_SINGLE_LABEL
  52. // * IMAGE_CLASSIFICATION_MULTI_LABEL
  53. // * IMAGE_BOUNDING_POLY
  54. // * IMAGE_BOUNDING_BOX
  55. // * TEXT_CLASSIFICATION_SINGLE_LABEL
  56. // * TEXT_CLASSIFICATION_MULTI_LABEL
  57. // * TEXT_EXTRACTION
  58. // * TEXT_SENTIMENT
  59. // * VIDEO_CLASSIFICATION
  60. // * VIDEO_OBJECT_TRACKING
  61. string problem_type = 6 [(google.api.field_behavior) = REQUIRED];
  62. // Output only. Number of AnnotationSpecs in the context of the SavedQuery.
  63. int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. // Used to perform a consistent read-modify-write update. If not set, a blind
  65. // "overwrite" update happens.
  66. string etag = 8;
  67. // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
  68. // training.
  69. bool support_automl_training = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  70. }