xref: /aosp_15_r20/external/googleapis/google/cloud/automl/v1beta1/annotation_payload.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2020 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
15syntax = "proto3";
16
17package google.cloud.automl.v1beta1;
18
19import "google/cloud/automl/v1beta1/classification.proto";
20import "google/cloud/automl/v1beta1/detection.proto";
21import "google/cloud/automl/v1beta1/tables.proto";
22import "google/cloud/automl/v1beta1/text_extraction.proto";
23import "google/cloud/automl/v1beta1/text_sentiment.proto";
24import "google/cloud/automl/v1beta1/translation.proto";
25
26option go_package = "cloud.google.com/go/automl/apiv1beta1/automlpb;automlpb";
27option java_multiple_files = true;
28option java_package = "com.google.cloud.automl.v1beta1";
29option php_namespace = "Google\\Cloud\\AutoMl\\V1beta1";
30option ruby_package = "Google::Cloud::AutoML::V1beta1";
31
32// Contains annotation information that is relevant to AutoML.
33message AnnotationPayload {
34  // Output only . Additional information about the annotation
35  // specific to the AutoML domain.
36  oneof detail {
37    // Annotation details for translation.
38    TranslationAnnotation translation = 2;
39
40    // Annotation details for content or image classification.
41    ClassificationAnnotation classification = 3;
42
43    // Annotation details for image object detection.
44    ImageObjectDetectionAnnotation image_object_detection = 4;
45
46    // Annotation details for video classification.
47    // Returned for Video Classification predictions.
48    VideoClassificationAnnotation video_classification = 9;
49
50    // Annotation details for video object tracking.
51    VideoObjectTrackingAnnotation video_object_tracking = 8;
52
53    // Annotation details for text extraction.
54    TextExtractionAnnotation text_extraction = 6;
55
56    // Annotation details for text sentiment.
57    TextSentimentAnnotation text_sentiment = 7;
58
59    // Annotation details for Tables.
60    TablesAnnotation tables = 10;
61  }
62
63  // Output only . The resource ID of the annotation spec that
64  // this annotation pertains to. The annotation spec comes from either an
65  // ancestor dataset, or the dataset that was used to train the model in use.
66  string annotation_spec_id = 1;
67
68  // Output only. The value of
69  // [display_name][google.cloud.automl.v1beta1.AnnotationSpec.display_name]
70  // when the model was trained. Because this field returns a value at model
71  // training time, for different models trained using the same dataset, the
72  // returned value could be different as model owner could update the
73  // `display_name` between any two model training.
74  string display_name = 5;
75}
76