dataset.proto 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/maps/mapsplatformdatasets/v1alpha/data_source.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha";
  21. option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets";
  22. option java_multiple_files = true;
  23. option java_outer_classname = "DatasetProto";
  24. option java_package = "com.google.maps.mapsplatformdatasets.v1alpha";
  25. option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha";
  26. // A representation of a maps platform dataset.
  27. message Dataset {
  28. option (google.api.resource) = {
  29. type: "mapsplatformdatasets.googleapis.com/Dataset"
  30. pattern: "projects/{project}/datasets/{dataset}"
  31. };
  32. // Resource name,
  33. // projects/{project}/datasets/{dataset_id}
  34. string name = 1;
  35. // Human readable name, shown in the console UI. Set by customer.
  36. string display_name = 2;
  37. // A description of this dataset; set by the customer.
  38. string description = 3;
  39. // The version of the dataset.
  40. string version_id = 4;
  41. // Specified use case(s) for this dataset.
  42. repeated Usage usage = 5;
  43. // Details about the source of the data for the dataset.
  44. oneof data_source {
  45. // A local file source for the dataset for a single upload.
  46. LocalFileSource local_file_source = 6;
  47. // A Google Cloud Storage file source for the dataset for a single upload.
  48. GcsSource gcs_source = 7;
  49. }
  50. // The status of the import of the latest dataset version.
  51. State status = 12;
  52. // Output only. Time when the dataset was first created.
  53. google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  54. // Output only. Time when the dataset metadata was last updated.
  55. google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
  56. // Output only. Time when this version of dataset was created. (It happened when importing
  57. // data to the dataset)
  58. google.protobuf.Timestamp version_create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. The description for this version of dataset. It is provided when importing
  60. // data to the dataset.
  61. string version_description = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
  62. }
  63. // Usage specifies where the data is intended to be used to inform how to
  64. // process the data.
  65. enum Usage {
  66. // The usage of this dataset is not set.
  67. USAGE_UNSPECIFIED = 0;
  68. // This dataset will be used for data driven styling.
  69. USAGE_DATA_DRIVEN_STYLING = 1;
  70. // This dataset will be used for area affordances in routing.
  71. USAGE_AREA_AFFORDANCES = 2;
  72. // This dataset will be used for assisted driving in routing.
  73. USAGE_ASSISTED_DRIVING = 3;
  74. }
  75. // State specifies the status of the import of the latest dataset version.
  76. enum State {
  77. // The state of this dataset is not set.
  78. STATE_UNSPECIFIED = 0;
  79. // The dataset version is getting imported.
  80. STATE_IMPORTING = 1;
  81. // The dataset version succeeded in getting imported.
  82. STATE_IMPORT_SUCCEEDED = 2;
  83. // The dataset version failed to get imported.
  84. STATE_IMPORT_FAILED = 3;
  85. }