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