Skip to content

Commit

Permalink
feat: [routeoptimization] Add support for generating route tokens (#5706
Browse files Browse the repository at this point in the history
)

* feat: Add support for generating route tokens

feat: A new field `route_token` is added to message `.google.maps.routeoptimization.v1.ShipmentRoute.Transition`
docs: A comment for method `BatchOptimizeTours` in service `RouteOptimization` is changed
docs: A comment for field `populate_transition_polylines` in message `.google.maps.routeoptimization.v1.OptimizeToursRequest` is changed
docs: A comment for field `code` in message `.google.maps.routeoptimization.v1.OptimizeToursValidationError` is changed
PiperOrigin-RevId: 677952232

Source-Link: googleapis/googleapis@534e49c

Source-Link: googleapis/googleapis-gen@da6e35d
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGVvcHRpbWl6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6ImRhNmUzNWQzMWIwZGU5ZGRiYWE5N2JkOTY0ODk5ZmJiOWIxYzAwMGMifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Bankhead <[email protected]>
Co-authored-by: sofisl <[email protected]>
  • Loading branch information
4 people authored Oct 9, 2024
1 parent 1a182cc commit ade97ed
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 256 deletions.

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions packages/google-maps-routeoptimization/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/google-maps-routeoptimization/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/google-maps-routeoptimization/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function main(parent) {
*/
// const populatePolylines = true
/**
* If true, polylines will be populated in response
* If true, polylines and route tokens will be populated in response
* ShipmentRoute.transitions google.maps.routeoptimization.v1.ShipmentRoute.transitions.
*/
// const populateTransitionPolylines = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"regionTag": "routeoptimization_v1_generated_RouteOptimization_BatchOptimizeTours_async",
"title": "RouteOptimization batchOptimizeTours Sample",
"origin": "API_DEFINITION",
"description": " Optimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch. This method is a Long Running Operation (LRO). The inputs for optimization (`OptimizeToursRequest` messages) and outputs (`OptimizeToursResponse` messages) are read/written from/to Cloud Storage in user-specified format. Like the `OptimizeTours` method, each `OptimizeToursRequest` contains a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost. The user can poll `operations.get` to check the status of the LRO: If the LRO's `done` field is false, then at least one request is still being processed. Other requests may have completed successfully and their results are available in GCS. If the LRO's `done` field is true, then all requests have been processed. Any successfully processed requests will have their results available in GCS. Any requests that failed will not have their results available in GCS. If the LRO's `error` field is set, then it contains the error from one of the failed requests.",
"description": " Optimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch. This method is a Long Running Operation (LRO). The inputs for optimization (`OptimizeToursRequest` messages) and outputs (`OptimizeToursResponse` messages) are read from and written to Cloud Storage in user-specified format. Like the `OptimizeTours` method, each `OptimizeToursRequest` contains a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute` fields, which are a set of routes to be performed by vehicles minimizing the overall cost. The user can poll `operations.get` to check the status of the LRO: If the LRO `done` field is false, then at least one request is still being processed. Other requests may have completed successfully and their results are available in Cloud Storage. If the LRO's `done` field is true, then all requests have been processed. Any successfully processed requests will have their results available in Cloud Storage. Any requests that failed will not have their results available in Cloud Storage. If the LRO's `error` field is set, then it contains the error from one of the failed requests.",
"canonical": true,
"file": "route_optimization.batch_optimize_tours.js",
"language": "JAVASCRIPT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ export class RouteOptimizationClient {
* @param {boolean} request.populatePolylines
* If true, polylines will be populated in response `ShipmentRoute`s.
* @param {boolean} request.populateTransitionPolylines
* If true, polylines will be populated in response
* If true, polylines and route tokens will be populated in response
* {@link protos.google.maps.routeoptimization.v1.ShipmentRoute.transitions|ShipmentRoute.transitions}.
* @param {boolean} request.allowLargeDeadlineDespiteInterruptionRisk
* If this is set, then the request can have a deadline
Expand Down Expand Up @@ -704,23 +704,23 @@ export class RouteOptimizationClient {
*
* This method is a Long Running Operation (LRO). The inputs for optimization
* (`OptimizeToursRequest` messages) and outputs (`OptimizeToursResponse`
* messages) are read/written from/to Cloud Storage in user-specified
* messages) are read from and written to Cloud Storage in user-specified
* format. Like the `OptimizeTours` method, each `OptimizeToursRequest`
* contains a `ShipmentModel` and returns an `OptimizeToursResponse`
* containing `ShipmentRoute`s, which are a set of routes to be performed by
* vehicles minimizing the overall cost.
* containing `ShipmentRoute` fields, which are a set of routes to be
* performed by vehicles minimizing the overall cost.
*
* The user can poll `operations.get` to check the status of the LRO:
*
* If the LRO's `done` field is false, then at least one request is still
* If the LRO `done` field is false, then at least one request is still
* being processed. Other requests may have completed successfully and their
* results are available in GCS.
* results are available in Cloud Storage.
*
* If the LRO's `done` field is true, then all requests have been processed.
* Any successfully processed requests will have their results available in
* GCS. Any requests that failed will not have their results available in
* GCS. If the LRO's `error` field is set, then it contains the error from
* one of the failed requests.
* Cloud Storage. Any requests that failed will not have their results
* available in Cloud Storage. If the LRO's `error` field is set, then it
* contains the error from one of the failed requests.
*
* @param {Object} request
* The request object that will be sent.
Expand Down

0 comments on commit ade97ed

Please sign in to comment.