annotation_payload.proto 2.6 KB

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