Skip to content

Commit

Permalink
feat: [cloudoptimization] added the route modifiers (#9963)
Browse files Browse the repository at this point in the history
* feat: added the route modifiers

Users can now set optional conditions when calculating vehicle routes.

PiperOrigin-RevId: 572934958

Source-Link: googleapis/googleapis@d1ed9b8

Source-Link: https://github.com/googleapis/googleapis-gen/commit/797754860db7e2fea109f855062523e063e57603
Copy-Tag: eyJwIjoiamF2YS1vcHRpbWl6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6Ijc5Nzc1NDg2MGRiN2UyZmVhMTA5Zjg1NTA2MjUyM2UwNjNlNTc2MDMifQ==

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Oct 17, 2023
1 parent 7104b86 commit 1f558b0
Show file tree
Hide file tree
Showing 15 changed files with 1,906 additions and 515 deletions.
4 changes: 2 additions & 2 deletions java-optimization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.23.0</version>
<version>26.24.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.22.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.26.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.optimization.v1.RouteModifiers",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.optimization.v1.RouteModifiers$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.optimization.v1.Shipment",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ public double getCostsOrThrow(java.lang.String key) {
* <code>double total_cost = 11 [deprecated = true];</code>
*
* @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
* google/cloud/optimization/v1/fleet_routing.proto;l=2351
* google/cloud/optimization/v1/fleet_routing.proto;l=2381
* @return The totalCost.
*/
@java.lang.Override
Expand Down Expand Up @@ -3087,7 +3087,7 @@ public Builder putAllCosts(java.util.Map<java.lang.String, java.lang.Double> val
* <code>double total_cost = 11 [deprecated = true];</code>
*
* @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
* google/cloud/optimization/v1/fleet_routing.proto;l=2351
* google/cloud/optimization/v1/fleet_routing.proto;l=2381
* @return The totalCost.
*/
@java.lang.Override
Expand All @@ -3109,7 +3109,7 @@ public double getTotalCost() {
* <code>double total_cost = 11 [deprecated = true];</code>
*
* @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
* google/cloud/optimization/v1/fleet_routing.proto;l=2351
* google/cloud/optimization/v1/fleet_routing.proto;l=2381
* @param value The totalCost to set.
* @return This builder for chaining.
*/
Expand All @@ -3135,7 +3135,7 @@ public Builder setTotalCost(double value) {
* <code>double total_cost = 11 [deprecated = true];</code>
*
* @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
* google/cloud/optimization/v1/fleet_routing.proto;l=2351
* google/cloud/optimization/v1/fleet_routing.proto;l=2381
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ com.google.cloud.optimization.v1.ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(
* <code>double total_cost = 11 [deprecated = true];</code>
*
* @deprecated google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See
* google/cloud/optimization/v1/fleet_routing.proto;l=2351
* google/cloud/optimization/v1/fleet_routing.proto;l=2381
* @return The totalCost.
*/
@java.lang.Deprecated
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,13 @@ public com.google.protobuf.Parser<FieldReference> getParserForType() {
* * VISIT_REQUEST_DURATION_NEGATIVE_OR_NAN = 4404;
* * VISIT_REQUEST_DURATION_EXCEEDS_GLOBAL_DURATION = 4405;
* * PRECEDENCE_ERROR = 46;
* * PRECEDENCE_RULE_MISSING_FIRST_INDEX = 4600;
* * PRECEDENCE_RULE_MISSING_SECOND_INDEX = 4601;
* * PRECEDENCE_RULE_FIRST_INDEX_OUT_OF_BOUNDS = 4602;
* * PRECEDENCE_RULE_SECOND_INDEX_OUT_OF_BOUNDS = 4603;
* * PRECEDENCE_RULE_DUPLICATE_INDEX = 4604;
* * PRECEDENCE_RULE_INEXISTENT_FIRST_VISIT_REQUEST = 4605;
* * PRECEDENCE_RULE_INEXISTENT_SECOND_VISIT_REQUEST = 4606;
* * BREAK_ERROR = 48;
* * BREAK_RULE_EMPTY = 4800;
* * BREAK_REQUEST_UNSPECIFIED_DURATION = 4801;
Expand Down Expand Up @@ -2848,6 +2855,13 @@ public Builder mergeFrom(
* * VISIT_REQUEST_DURATION_NEGATIVE_OR_NAN = 4404;
* * VISIT_REQUEST_DURATION_EXCEEDS_GLOBAL_DURATION = 4405;
* * PRECEDENCE_ERROR = 46;
* * PRECEDENCE_RULE_MISSING_FIRST_INDEX = 4600;
* * PRECEDENCE_RULE_MISSING_SECOND_INDEX = 4601;
* * PRECEDENCE_RULE_FIRST_INDEX_OUT_OF_BOUNDS = 4602;
* * PRECEDENCE_RULE_SECOND_INDEX_OUT_OF_BOUNDS = 4603;
* * PRECEDENCE_RULE_DUPLICATE_INDEX = 4604;
* * PRECEDENCE_RULE_INEXISTENT_FIRST_VISIT_REQUEST = 4605;
* * PRECEDENCE_RULE_INEXISTENT_SECOND_VISIT_REQUEST = 4606;
* * BREAK_ERROR = 48;
* * BREAK_RULE_EMPTY = 4800;
* * BREAK_REQUEST_UNSPECIFIED_DURATION = 4801;
Expand Down Expand Up @@ -3099,6 +3113,13 @@ public int getCode() {
* * VISIT_REQUEST_DURATION_NEGATIVE_OR_NAN = 4404;
* * VISIT_REQUEST_DURATION_EXCEEDS_GLOBAL_DURATION = 4405;
* * PRECEDENCE_ERROR = 46;
* * PRECEDENCE_RULE_MISSING_FIRST_INDEX = 4600;
* * PRECEDENCE_RULE_MISSING_SECOND_INDEX = 4601;
* * PRECEDENCE_RULE_FIRST_INDEX_OUT_OF_BOUNDS = 4602;
* * PRECEDENCE_RULE_SECOND_INDEX_OUT_OF_BOUNDS = 4603;
* * PRECEDENCE_RULE_DUPLICATE_INDEX = 4604;
* * PRECEDENCE_RULE_INEXISTENT_FIRST_VISIT_REQUEST = 4605;
* * PRECEDENCE_RULE_INEXISTENT_SECOND_VISIT_REQUEST = 4606;
* * BREAK_ERROR = 48;
* * BREAK_RULE_EMPTY = 4800;
* * BREAK_REQUEST_UNSPECIFIED_DURATION = 4801;
Expand Down Expand Up @@ -3354,6 +3375,13 @@ public Builder setCode(int value) {
* * VISIT_REQUEST_DURATION_NEGATIVE_OR_NAN = 4404;
* * VISIT_REQUEST_DURATION_EXCEEDS_GLOBAL_DURATION = 4405;
* * PRECEDENCE_ERROR = 46;
* * PRECEDENCE_RULE_MISSING_FIRST_INDEX = 4600;
* * PRECEDENCE_RULE_MISSING_SECOND_INDEX = 4601;
* * PRECEDENCE_RULE_FIRST_INDEX_OUT_OF_BOUNDS = 4602;
* * PRECEDENCE_RULE_SECOND_INDEX_OUT_OF_BOUNDS = 4603;
* * PRECEDENCE_RULE_DUPLICATE_INDEX = 4604;
* * PRECEDENCE_RULE_INEXISTENT_FIRST_VISIT_REQUEST = 4605;
* * PRECEDENCE_RULE_INEXISTENT_SECOND_VISIT_REQUEST = 4606;
* * BREAK_ERROR = 48;
* * BREAK_RULE_EMPTY = 4800;
* * BREAK_REQUEST_UNSPECIFIED_DURATION = 4801;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,13 @@ public interface OptimizeToursValidationErrorOrBuilder
* * VISIT_REQUEST_DURATION_NEGATIVE_OR_NAN = 4404;
* * VISIT_REQUEST_DURATION_EXCEEDS_GLOBAL_DURATION = 4405;
* * PRECEDENCE_ERROR = 46;
* * PRECEDENCE_RULE_MISSING_FIRST_INDEX = 4600;
* * PRECEDENCE_RULE_MISSING_SECOND_INDEX = 4601;
* * PRECEDENCE_RULE_FIRST_INDEX_OUT_OF_BOUNDS = 4602;
* * PRECEDENCE_RULE_SECOND_INDEX_OUT_OF_BOUNDS = 4603;
* * PRECEDENCE_RULE_DUPLICATE_INDEX = 4604;
* * PRECEDENCE_RULE_INEXISTENT_FIRST_VISIT_REQUEST = 4605;
* * PRECEDENCE_RULE_INEXISTENT_SECOND_VISIT_REQUEST = 4606;
* * BREAK_ERROR = 48;
* * BREAK_RULE_EMPTY = 4800;
* * BREAK_REQUEST_UNSPECIFIED_DURATION = 4801;
Expand Down
Loading

0 comments on commit 1f558b0

Please sign in to comment.