Index
RoadsSelection(interface)BatchCreateSelectedRoutesRequest(message)BatchCreateSelectedRoutesResponse(message)BatchDeleteSelectedRoutesRequest(message)BatchUpdateSelectedRoutesRequest(message)BatchUpdateSelectedRoutesResponse(message)CreateSelectedRouteRequest(message)DeleteSelectedRouteRequest(message)GetSelectedRouteRequest(message)ListSelectedRoutesRequest(message)ListSelectedRoutesResponse(message)SelectedRoute(message)SelectedRoute.DynamicRoute(message)SelectedRoute.State(enum)SelectedRoute.ValidationError(enum)UpdateSelectedRouteRequest(message)
RoadsSelection
Service definition for the Roads Selection API.
| BatchCreateSelectedRoutes |
|---|
|
Creates multiple
|
| BatchDeleteSelectedRoutes |
|---|
|
Deletes multiple
|
| BatchUpdateSelectedRoutes |
|---|
|
Updates multiple
|
| CreateSelectedRoute |
|---|
|
Creates a SelectedRoute and starts a schedule to periodically retrieve cache information for the route.
|
| DeleteSelectedRoute |
|---|
|
Deletes the specified SelectedRoute for the specified project.
|
| GetSelectedRoute |
|---|
|
Gets a SelectedRoute as specified by its name.
|
| ListSelectedRoutes |
|---|
|
Lists all
|
| UpdateSelectedRoute |
|---|
|
Updates a SelectedRoute as specified by its name.
|
BatchCreateSelectedRoutesRequest
Request to create multiple SelectedRoutes.
| Fields | |
|---|---|
parent |
Required. The project resource shared by all selected routes in the batch. It's required because the batch request supports only a single |
requests[] |
Required. The request message specifying the selected route to create. A maximum of 1,000 selected routes can be created in a batch. The parent resource of each request must either be empty or match the top-level |
BatchCreateSelectedRoutesResponse
Response from creating multiple SelectedRoutes.
| Fields | |
|---|---|
selected_routes[] |
|
BatchDeleteSelectedRoutesRequest
Request to delete multiple SelectedRoutes.
| Fields | |
|---|---|
parent |
Required. The project resource shared by all selected routes to delete. It's required because the batch request supports only a single |
names[] |
Required. The names of the selected routes to delete. A maximum of 1,000 selected routes can be deleted in a batch. Format: projects/{project}/selectedRoutes/{selected_route} |
BatchUpdateSelectedRoutesRequest
Request to update multiple SelectedRoutes.
| Fields | |
|---|---|
parent |
Required. The project resource shared by all selected routes in the batch. It's required because the batch request supports only a single |
requests[] |
Required. The request message specifying the selected route to update. A maximum of 1,000 selected routes can be updated in a batch. The parent resource of each request must either be empty or match the top-level |
update_mask |
Optional. The list of fields to update shared by all child requests in the batch. Field paths are relative to Example: If set, this If omitted, the child request's |
BatchUpdateSelectedRoutesResponse
Response from updating multiple SelectedRoutes.
| Fields | |
|---|---|
selected_routes[] |
|
CreateSelectedRouteRequest
Request to create a SelectedRoute.
| Fields | |
|---|---|
parent |
Required. The project that the |
selected_route |
Required. The |
selected_route_id |
Optional. The ID to use for the This value should be 4-63 characters, and valid characters are "a-z", "A-Z", "0-9", or "-". If it is not provided or empty, a UUID will be generated after resource creation. |
DeleteSelectedRouteRequest
Request to delete a SelectedRoute.
| Fields | |
|---|---|
name |
Required. The name of the SelectedRoute to delete. Format: projects/{project}/selectedRoutes/{selected_route} |
GetSelectedRouteRequest
Request to get a SelectedRoute.
| Fields | |
|---|---|
name |
Required. The name of the |
ListSelectedRoutesRequest
Request to list SelectedRoutes.
| Fields | |
|---|---|
parent |
Required. The |
page_size |
Optional. The number of results that should be returned for a given page. If not set, the default value is 100. When a value of 0 is given, the value is set to the default. The maximum value is 5,000; any value above 5,000 is set to 5,000. |
page_token |
Optional. A page token, received from a previous |
ListSelectedRoutesResponse
Response that lists SelectedRoutes.
| Fields | |
|---|---|
selected_routes[] |
A page of |
next_page_token |
Token that can be sent as |
SelectedRoute
A SelectedRoute represents a specific route that a customer wants to periodically retrieve information (e.g. duration) for contracted use cases.
| Fields | |
|---|---|
name |
Identifier. Resource name of the Format: projects/{project}/selectedRoutes/{selected_route} |
display_name |
Optional. Display name of the route. This is an optional field that can be used by the customer. It does not have to be unique. The length is limited to 100 characters (counted in Unicode code points). |
create_time |
Output only. Time when the selected route was first created. |
state |
Output only. The state of the selected route. |
route_attributes |
Optional. The custom attributes for the selected route. Adding them allows filtering or grouping of the routes when retrieving historical and real-time routes information. Up to 25 attributes are supported per route. Each key and value should be a non-empty string and can have up to 100 characters (counted in Unicode code points). The keys must not start with |
Union field route_type. Currently only DynamicRoute is supported. route_type can be only one of the following: |
|
dynamic_route |
The |
validation_error |
Output only. The validation error for the selected route when the state is STATE_INVALID. |
DynamicRoute
This represents a route with waypoints (origin, destination, and intermediates). The actual route is guaranteed to pass all the waypoints, but it could change from time to time due to varying traffic condition.
| Fields | |
|---|---|
origin |
Required. Origin location of the route. |
destination |
Required. Ending location of the route. |
intermediates[] |
Optional. A set of intermediate waypoints along the route (excluding terminal points). They are always passing-by points. Up to 25 intermediate waypoints are supported. Adding them properly can reduce the variation of actual route from time to time. |
State
The state of the selected route.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The state of this route is not set. |
STATE_SCHEDULING |
The route has been created and is being scheduled. |
STATE_RUNNING |
The route has been created and has an active schedule. |
STATE_DELETING |
The route has been marked for deletion. |
STATE_VALIDATING |
The route is in the process of being validated. |
STATE_INVALID |
The route is invalid based on one of the validation criteria. |
ValidationError
The validation error for the selected route.
| Enums | |
|---|---|
VALIDATION_ERROR_UNSPECIFIED |
The validation error of this route is not set. |
VALIDATION_ERROR_ROUTE_OUTSIDE_JURISDICTION |
The route is outside the jurisdiction of the project. |
VALIDATION_ERROR_LOW_ROAD_USAGE |
The route has low road usage (very few people pass through it). |
UpdateSelectedRouteRequest
Request to update a SelectedRoute.
| Fields | |
|---|---|
selected_route |
Required. The |
update_mask |
Optional. The list of fields to update. Field paths are relative to Example: If If |