summaryrefslogtreecommitdiff
path: root/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/dataset.proto
blob: 64e83cb4d908466dfaed0ba7238b51dcf9c6d1f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// 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;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/maps/mapsplatformdatasets/v1alpha/data_source.proto";
import "google/protobuf/timestamp.proto";

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 = "DatasetProto";
option java_package = "com.google.maps.mapsplatformdatasets.v1alpha";
option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha";

// A representation of a maps platform dataset.
message Dataset {
  option (google.api.resource) = {
    type: "mapsplatformdatasets.googleapis.com/Dataset"
    pattern: "projects/{project}/datasets/{dataset}"
  };

  // Resource name,
  // projects/{project}/datasets/{dataset_id}
  string name = 1;

  // Human readable name, shown in the console UI. Set by customer.
  string display_name = 2;

  // A description of this dataset; set by the customer.
  string description = 3;

  // The version of the dataset.
  string version_id = 4;

  // Specified use case(s) for this dataset.
  repeated Usage usage = 5;

  // Details about the source of the data for the dataset.
  oneof data_source {
    // A local file source for the dataset for a single upload.
    LocalFileSource local_file_source = 6;

    // A Google Cloud Storage file source for the dataset for a single upload.
    GcsSource gcs_source = 7;
  }

  // The status of the import of the latest dataset version.
  State status = 12;

  // Output only. Time when the dataset was first created.
  google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Time when the dataset metadata was last updated.
  google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Time when this version of dataset was created. (It happened when importing
  // data to the dataset)
  google.protobuf.Timestamp version_create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The description for this version of dataset. It is provided when importing
  // data to the dataset.
  string version_description = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Usage specifies where the data is intended to be used to inform how to
// process the data.
enum Usage {
  // The usage of this dataset is not set.
  USAGE_UNSPECIFIED = 0;

  // This dataset will be used for data driven styling.
  USAGE_DATA_DRIVEN_STYLING = 1;

  // This dataset will be used for area affordances in routing.
  USAGE_AREA_AFFORDANCES = 2;

  // This dataset will be used for assisted driving in routing.
  USAGE_ASSISTED_DRIVING = 3;
}

// State specifies the status of the import of the latest dataset version.
enum State {
  // The state of this dataset is not set.
  STATE_UNSPECIFIED = 0;

  // The dataset version is getting imported.
  STATE_IMPORTING = 1;

  // The dataset version succeeded in getting imported.
  STATE_IMPORT_SUCCEEDED = 2;

  // The dataset version failed to get imported.
  STATE_IMPORT_FAILED = 3;
}