data_payloads.proto 2.2 KB

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