// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package google.maps.mapsplatformdatasets.v1alpha; option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; option java_multiple_files = true; option java_outer_classname = "DataSourceProto"; option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; // The details about the data source when it is a local file. message LocalFileSource { // The file name and extension of the uploaded file. string filename = 1; // The format of the file that is being uploaded. FileFormat file_format = 2; } // The details about the data source when it is in Google Cloud Storage. message GcsSource { // Source data URI. For example, `gs://my_bucket/my_object`. string input_uri = 1; // The file format of the Google Cloud Storage object. This is used mainly for // validation. FileFormat file_format = 2; } // The format of the file being uploaded. enum FileFormat { // Unspecified file format. FILE_FORMAT_UNSPECIFIED = 0; // GeoJson file. FILE_FORMAT_GEOJSON = 1; // KML file. FILE_FORMAT_KML = 2; // CSV file. FILE_FORMAT_CSV = 3; // Protobuf file. FILE_FORMAT_PROTO = 4; // KMZ file. FILE_FORMAT_KMZ = 5; }