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