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