data_source.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. syntax = "proto3";
  15. package google.maps.mapsplatformdatasets.v1alpha;
  16. option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha";
  17. option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "DataSourceProto";
  20. option java_package = "com.google.maps.mapsplatformdatasets.v1alpha";
  21. option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha";
  22. // The details about the data source when it is a local file.
  23. message LocalFileSource {
  24. // The file name and extension of the uploaded file.
  25. string filename = 1;
  26. // The format of the file that is being uploaded.
  27. FileFormat file_format = 2;
  28. }
  29. // The details about the data source when it is in Google Cloud Storage.
  30. message GcsSource {
  31. // Source data URI. For example, `gs://my_bucket/my_object`.
  32. string input_uri = 1;
  33. // The file format of the Google Cloud Storage object. This is used mainly for
  34. // validation.
  35. FileFormat file_format = 2;
  36. }
  37. // The format of the file being uploaded.
  38. enum FileFormat {
  39. // Unspecified file format.
  40. FILE_FORMAT_UNSPECIFIED = 0;
  41. // GeoJson file.
  42. FILE_FORMAT_GEOJSON = 1;
  43. // KML file.
  44. FILE_FORMAT_KML = 2;
  45. // CSV file.
  46. FILE_FORMAT_CSV = 3;
  47. // Protobuf file.
  48. FILE_FORMAT_PROTO = 4;
  49. // KMZ file.
  50. FILE_FORMAT_KMZ = 5;
  51. }