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 15syntax = "proto3"; 16 17package google.cloud.automl.v1; 18 19import "google/cloud/automl/v1/classification.proto"; 20import "google/cloud/automl/v1/detection.proto"; 21import "google/cloud/automl/v1/text_extraction.proto"; 22import "google/cloud/automl/v1/text_sentiment.proto"; 23import "google/cloud/automl/v1/translation.proto"; 24 25option csharp_namespace = "Google.Cloud.AutoML.V1"; 26option go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb"; 27option java_multiple_files = true; 28option java_package = "com.google.cloud.automl.v1"; 29option php_namespace = "Google\\Cloud\\AutoMl\\V1"; 30option ruby_package = "Google::Cloud::AutoML::V1"; 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 text extraction. 47 TextExtractionAnnotation text_extraction = 6; 48 49 // Annotation details for text sentiment. 50 TextSentimentAnnotation text_sentiment = 7; 51 } 52 53 // Output only . The resource ID of the annotation spec that 54 // this annotation pertains to. The annotation spec comes from either an 55 // ancestor dataset, or the dataset that was used to train the model in use. 56 string annotation_spec_id = 1; 57 58 // Output only. The value of 59 // [display_name][google.cloud.automl.v1.AnnotationSpec.display_name] 60 // when the model was trained. Because this field returns a value at model 61 // training time, for different models trained using the same dataset, the 62 // returned value could be different as model owner could update the 63 // `display_name` between any two model training. 64 string display_name = 5; 65} 66