• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15syntax = "proto3";
16
17package google.cloud.aiplatform.v1beta1.schema;
18
19import "google/api/field_behavior.proto";
20
21option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1.Schema";
22option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/schema/schemapb;schemapb";
23option java_multiple_files = true;
24option java_outer_classname = "DataItemPayloadProto";
25option java_package = "com.google.cloud.aiplatform.v1beta1.schema";
26option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1\\Schema";
27option ruby_package = "Google::Cloud::AIPlatform::V1beta1::Schema";
28
29// Payload of Image DataItem.
30message ImageDataItem {
31  // Required. Google Cloud Storage URI points to the original image in user's bucket.
32  // The image is up to 30MB in size.
33  string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED];
34
35  // Output only. The mime type of the content of the image. Only the images in below listed
36  // mime types are supported.
37  // - image/jpeg
38  // - image/gif
39  // - image/png
40  // - image/webp
41  // - image/bmp
42  // - image/tiff
43  // - image/vnd.microsoft.icon
44  string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
45}
46
47// Payload of Video DataItem.
48message VideoDataItem {
49  // Required. Google Cloud Storage URI points to the original video in user's bucket.
50  // The video is up to 50 GB in size and up to 3 hour in duration.
51  string gcs_uri = 1 [(google.api.field_behavior) = REQUIRED];
52
53  // Output only. The mime type of the content of the video. Only the videos in below listed
54  // mime types are supported.
55  // Supported mime_type:
56  // - video/mp4
57  // - video/avi
58  // - video/quicktime
59  string mime_type = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
60}
61
62// Payload of Text DataItem.
63message TextDataItem {
64  // Output only. Google Cloud Storage URI points to the original text in user's bucket.
65  // The text file is up to 10MB in size.
66  string gcs_uri = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
67}
68