Package google.maps.mapsplatformdatasets.v1alpha

Index

MapsPlatformDatasetsV1Alpha

Service definition for the Maps Platform Datasets API.

CreateDataset

rpc CreateDataset(CreateDatasetRequest) returns (Dataset)

Create a new dataset for the specified project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • mapsplatformdatasets.datasets.create

For more information, see the IAM documentation.

DeleteDataset

rpc DeleteDataset(DeleteDatasetRequest) returns (Empty)

Delete the specified dataset .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • mapsplatformdatasets.datasets.delete

For more information, see the IAM documentation.

DownloadDataset

rpc DownloadDataset(DownloadDatasetRequest) returns (DownloadDatasetResponse)

Downloads a dataset.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • mapsplatformdatasets.datasets.export

For more information, see the IAM documentation.

GetDataset

rpc GetDataset(GetDatasetRequest) returns (Dataset)

Get the dataset.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • mapsplatformdatasets.datasets.get

For more information, see the IAM documentation.

ImportDataset

rpc ImportDataset(ImportDatasetRequest) returns (ImportDatasetResponse)

Imports a new version of the data for the dataset.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • mapsplatformdatasets.datasets.import

For more information, see the IAM documentation.

ListDatasets

rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse)

List all the datasets for the specified project.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the parent resource:

  • mapsplatformdatasets.datasets.list

For more information, see the IAM documentation.

UpdateDatasetMetadata

rpc UpdateDatasetMetadata(UpdateDatasetMetadataRequest) returns (Dataset)

Update the metadata for the dataset.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform
IAM Permissions

Requires the following IAM permission on the name resource:

  • mapsplatformdatasets.datasets.update

For more information, see the IAM documentation.

CreateDatasetRequest

Request to create a maps dataset.

Fields
parent

string

Required. Parent project that will own the dataset. Format: projects/{$project}

dataset

Dataset

Required. The dataset version to create.

Dataset

A representation of a maps platform dataset.

Fields
name

string

Resource name, projects/{project}/datasets/{dataset_id}

display_name

string

Human readable name, shown in the console UI .

description

string

A description of this dataset .

version_id

string

The version ID of the dataset.

usage[]

Usage

Specified use case(s) for this dataset.

status

Status

Output only. The status of this dataset version.

create_time

Timestamp

Output only. Time when the dataset was first created.

update_time

Timestamp

Output only. Time when the dataset metadata was last updated.

version_create_time

Timestamp

Output only. Time when this version of dataset was created. (It happened when importing data to the dataset)

version_description

string

Output only. The description for this version of dataset. It is provided when importing data to the dataset.

Union field data_source. Details about the source of the data for the dataset. data_source can be only one of the following:
local_file_source

LocalFileSource

A local file source for the dataset for a single upload.

gcs_source

GcsSource

A Google Cloud Storage file source for the dataset for a single upload.

DeleteDatasetRequest

Request to delete a dataset.

The dataset to be deleted.

Fields
name

string

Required. Format: projects/${project}/datasets/{dataset_id}

DownloadDatasetRequest

Request to download the dataset.

Fields
name

string

The dataset to fetch. Format: projects/${project}/datasets/${dataset_id}

DownloadDatasetResponse

Response from downloading the dataset.

FileFormat

The format of the file being uploaded.

Enums
FILE_FORMAT_UNSPECIFIED Unspecified file format.
FILE_FORMAT_GEOJSON GeoJson file.
FILE_FORMAT_KML KML file.
FILE_FORMAT_CSV CSV file.

GcsSource

The details about the data source when it is in Google Cloud Storage.

Fields
input_uri

string

Source data URI. For example, gs://my_bucket/my_object.

file_format

FileFormat

The file format of the Google Cloud Storage object. This is used mainly for validation.

GetDatasetRequest

Request to get the specified dataset.

Fields
name

string

Required. Resource name. projects/{project}/datasets/{dataset_id}

ImportDatasetRequest

Request to import a new version of the dataset.

Fields
name

string

Required. Resource name, projects/{project}/datasets/{dataset_id}

version_description

string

A description of the new data being imported.

Union field data_source. Details about the source of the data for the dataset. data_source can be only one of the following:
local_file_source

LocalFileSource

A local file source for the dataset for a one time import.

gcs_source

GcsSource

A Google Cloud Storage file source for the dataset for a one time import.

ImportDatasetResponse

Response from importing a new version of the dataset.

Fields
name

string

Required. Resource name of the newly created dataset version, projects/{project}/datasets/{dataset_id}@{version_id}

ListDatasetsRequest

Request to list datasets for the project.

Fields
parent

string

Required. The name of the project to list all the datasets for.

page_size

int32

The maximum number of versions to return per page. If unspecified (or zero), all datasets will be returned.

page_token

string

The page token, received from a previous ListDatasets call. Provide this to retrieve the subsequent page.

ListDatasetsResponse

Response to list datasets for the project.

Fields
datasets[]

Dataset

All the datasets for the project.

next_page_token

string

A token that can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

LocalFileSource

The details about the data source when it is a local file.

Fields
filename

string

The file name and extension of the uploaded file.

file_format

FileFormat

The format of the file that is being uploaded.

Status

Status of the dataset version.

Fields
state

State

State enum for status.

error_message

string

Error message indicating reason of failure. It is empty if the datasets is not in a failed state.

State

A list of states for the dataset.

Enums
STATE_UNSPECIFIED The state of this dataset is not set.
STATE_IMPORTING Data is being imported to a dataset.
STATE_IMPORT_SUCCEEDED Importing data to a dataset succeeded.
STATE_IMPORT_FAILED Importing data to a dataset failed.
STATE_DELETING The dataset is in the process of getting deleted.
STATE_DELETION_FAILED The deletion failed state. This state represents that dataset deletion has failed. Deletion may be retried.
STATE_PROCESSING The processing state. This state represents the initial matching and processing of datasets to derived datasets.
STATE_PROCESSING_FAILED Data is being processed.
STATE_NEEDS_REVIEW This state is currently not used.
STATE_PUBLISHING The publishing state. This state represents the publishing is in progress.
STATE_PUBLISHING_FAILED The publishing failed states. This state represents that the publishing failed. Publishing may be retried.
STATE_COMPLETED The completed state. This state represents the dataset being available for its specific usage.

UpdateDatasetMetadataRequest

Request to update the metadata fields of the dataset.

Fields
dataset

Dataset

Required. The dataset to update. The dataset's name is used to identify the dataset to be updated. The name has the format: projects/{project}/datasets/{dataset_id}

update_mask

FieldMask

The list of fields to be updated. Support the value "*" for full replacement.

Usage

Usage specifies where the data is intended to be used to inform how to process the data.

Enums
USAGE_UNSPECIFIED The usage of this dataset is not set.
USAGE_DATA_DRIVEN_STYLING This dataset will be used for data driven styling.