Skip to content

Commit

Permalink
feat: [google-maps-routeoptimization] Add support for generating rout…
Browse files Browse the repository at this point in the history
…e tokens (#13105)

BEGIN_COMMIT_OVERRIDE
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

END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

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==

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <[email protected]>
  • Loading branch information
3 people authored Sep 30, 2024
1 parent 89e859b commit 32b254c
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 392 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.3" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.3" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -403,25 +403,26 @@ async def batch_optimize_tours(
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
(``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``\ 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 being processed. Other requests may have completed
successfully and their results are available in GCS.
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 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.
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.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -805,25 +805,26 @@ def batch_optimize_tours(
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
(``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``\ 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 being processed. Other requests may have completed
successfully and their results are available in GCS.
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 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.
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.
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,25 +329,26 @@ def batch_optimize_tours(
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
(``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``\ 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 being processed. Other requests may have completed
successfully and their results are available in GCS.
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 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.
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.
Returns:
Callable[[~.BatchOptimizeToursRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,25 +336,26 @@ def batch_optimize_tours(
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
(``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``\ 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 being processed. Other requests may have completed
successfully and their results are available in GCS.
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 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.
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.
Returns:
Callable[[~.BatchOptimizeToursRequest],
Expand Down
Loading

0 comments on commit 32b254c

Please sign in to comment.