annotation_payload.proto 3.0 KB

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