data_payloads.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Copyright 2019 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. //
  15. syntax = "proto3";
  16. package google.cloud.datalabeling.v1beta1;
  17. import "google/api/annotations.proto";
  18. import "google/protobuf/duration.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Cloud.DataLabeling.V1Beta1";
  21. option go_package = "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1;datalabeling";
  22. option java_multiple_files = true;
  23. option java_package = "com.google.cloud.datalabeling.v1beta1";
  24. option php_namespace = "Google\\Cloud\\DataLabeling\\V1beta1";
  25. option ruby_package = "Google::Cloud::DataLabeling::V1beta1";
  26. // Container of information about an image.
  27. message ImagePayload {
  28. // Image format.
  29. string mime_type = 1;
  30. // A byte string of a thumbnail image.
  31. bytes image_thumbnail = 2;
  32. // Image uri from the user bucket.
  33. string image_uri = 3;
  34. // Signed uri of the image file in the service bucket.
  35. string signed_uri = 4;
  36. }
  37. // Container of information about a piece of text.
  38. message TextPayload {
  39. // Text content.
  40. string text_content = 1;
  41. }
  42. // Container of information of a video thumbnail.
  43. message VideoThumbnail {
  44. // A byte string of the video frame.
  45. bytes thumbnail = 1;
  46. // Time offset relative to the beginning of the video, corresponding to the
  47. // video frame where the thumbnail has been extracted from.
  48. google.protobuf.Duration time_offset = 2;
  49. }
  50. // Container of information of a video.
  51. message VideoPayload {
  52. // Video format.
  53. string mime_type = 1;
  54. // Video uri from the user bucket.
  55. string video_uri = 2;
  56. // The list of video thumbnails.
  57. repeated VideoThumbnail video_thumbnails = 3;
  58. // FPS of the video.
  59. float frame_rate = 4;
  60. // Signed uri of the video file in the service bucket.
  61. string signed_uri = 5;
  62. }