xref: /aosp_15_r20/external/googleapis/google/maps/mapsplatformdatasets/v1/data_source.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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.maps.mapsplatformdatasets.v1;
18
19option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1";
20option go_package = "cloud.google.com/go/maps/mapsplatformdatasets/apiv1/mapsplatformdatasetspb;mapsplatformdatasetspb";
21option java_multiple_files = true;
22option java_outer_classname = "DataSourceProto";
23option java_package = "com.google.maps.mapsplatformdatasets.v1";
24option objc_class_prefix = "MDV1";
25option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1";
26
27// The details about the data source when it is a local file.
28message LocalFileSource {
29  // The file name of the uploaded file.
30  string filename = 1;
31
32  // The format of the file that is being uploaded.
33  FileFormat file_format = 2;
34}
35
36// The details about the data source when it is in Google Cloud Storage.
37message GcsSource {
38  // Source data URI. For example, `gs://my_bucket/my_object`.
39  string input_uri = 1;
40
41  // The file format of the Google Cloud Storage object. This is used mainly for
42  // validation.
43  FileFormat file_format = 2;
44}
45
46// The format of the file being uploaded.
47enum FileFormat {
48  // Unspecified file format.
49  FILE_FORMAT_UNSPECIFIED = 0;
50
51  // GeoJson file.
52  FILE_FORMAT_GEOJSON = 1;
53
54  // KML file.
55  FILE_FORMAT_KML = 2;
56
57  // CSV file.
58  FILE_FORMAT_CSV = 3;
59}
60