annotation_payload.proto 3.0 KB

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